
#include "../common.h"

int main(int argc, char** argv)
{
	umask(7777);	
	int fd = open(argv[1], O_CREAT|O_WRONLY|O_TRUNC, 777);
	if (-1 == fd)
	{
		printf("open failed\n");
	}
	else
	{
		printf("open ok\n");
		close(fd);
	}

	return 0;
}
